home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group93b.txt / 000133_icon-group-sender _Mon Jun 7 17:49:10 1993.msg < prev    next >
Internet Message Format  |  1993-06-16  |  2KB

  1. Received: from owl.CS.Arizona.EDU by cheltenham.CS.Arizona.EDU; Sun, 13 Jun 1993 13:23:25 MST
  2. Received: by owl.cs.arizona.edu; Sun, 13 Jun 1993 13:23:24 MST
  3. Date: 7 Jun 93 17:49:10 GMT
  4. From: agate!usenet.ins.cwru.edu!wariat.org!wariat.org!ppetto@ucbvax.Berkeley.EDU  (Peter J. Petto)
  5. Organization: Akademia Pana Kleksa, Public Access Uni* Site
  6. Subject: Pattern-Matching Help Request
  7. Message-Id: <1993Jun7.174910.21523@wariat.org>
  8. Sender: icon-group-request@cs.arizona.edu
  9. To: icon-group@cs.arizona.edu
  10. Status: R
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12.  
  13. I'm looking for some help formulating a pattern-matching expression.
  14. It is to be used as part of a filter I use to make Usenet news
  15. articles more printable/readable.
  16.  
  17. I'm looking for something that will test a string for a pattern
  18. analgous to the following regular expression:
  19.  
  20.      %From [A-Za-z0-9.]\@
  21.  
  22. I'm looking to replace part of an existing Icon program which now
  23. reads:
  24.      if match("From usenet" | "From neoucom" | "From wariat", line)
  25.      then...
  26.  
  27. with something akin to the above that will match a wider (and
  28. unknown) set of senders such as:
  29.  
  30.      From andrew@...
  31.      From upcsc4@...
  32.      From the.universal.hacker@
  33.      etcetera
  34.  
  35. (My local news software just changed and now shows the orignator of
  36. each news article, rather than the relay-route.)
  37.  
  38. I'd appreciate any and all assistance.  Thanks.
  39.  
  40. ---
  41. Peter Petto          |       ppetto@wariat.org
  42. Bay Village, Ohio    |    73125.617@compuserve.com
  43.